<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>日期函数</title>
    <script>
        var date = new Date();
        //01.得到毫秒数的两个方法(距离1970年的毫秒数)
        console.log(date.getTime());
        console.log(date.valueOf());
        console.log(Date.now());
        console.log(+new Date());


    </script>
</head>
<body>

</body>
</html>